﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Qiang.Data
{
    public interface IVectorSet : IDataset
    {

        #region 事件

        event EventHandler<ShapeEventArgs> ShapeAdded;

        event EventHandler<ShapeEventArgs> ShapeRemoved;

        event EventHandler<ShapeEventArgs> ShapeChanged;

        #endregion

        
        #region 属性

        /// <summary>
        /// 图层内所有的图形
        /// </summary>
        IShapeList ShapeList { get; set; }

        #endregion


        #region 方法

        /// <summary>
        /// 
        /// </summary>
        /// <param name="shp"></param>
        void AddShape(IShape shp);


        /// <summary>
        /// 
        /// </summary>
        /// <param name="shp"></param>
        bool RemoveShape(IShape shp);

       
        /// <summary>
        /// 
        /// </summary>
        void BuildPolygon();

        /// <summary>
        /// 清空图形。
        /// </summary>
        void Clear();

        #endregion


    }
}
